package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VideoDateMapper;
import com.ruoyi.system.domain.VideoDate;
import com.ruoyi.system.service.IVideoDateService;

/**
 * 视频数据Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class VideoDateServiceImpl implements IVideoDateService
{
    @Autowired
    private VideoDateMapper videoDateMapper;

    /**
     * 查询视频数据
     *
     * @param xid 视频数据主键
     * @return 视频数据
     */
    @Override
    public VideoDate selectVideoDateByXid(Integer xid)
    {
        return videoDateMapper.selectVideoDateByXid(xid);
    }

    /**
     * 查询视频数据列表
     *
     * @param videoDate 视频数据
     * @return 视频数据
     */
    @Override
    public List<VideoDate> selectVideoDateList(VideoDate videoDate)
    {
        return videoDateMapper.selectVideoDateList(videoDate);
    }

    /**
     * 新增视频数据
     *
     * @param videoDate 视频数据
     * @return 结果
     */
    @Override
    public int insertVideoDate(VideoDate videoDate)
    {
        return videoDateMapper.insertVideoDate(videoDate);
    }

    /**
     * 修改视频数据
     *
     * @param videoDate 视频数据
     * @return 结果
     */
    @Override
    public int updateVideoDate(VideoDate videoDate)
    {
        return videoDateMapper.updateVideoDate(videoDate);
    }

    /**
     * 批量删除视频数据
     *
     * @param xids 需要删除的视频数据主键
     * @return 结果
     */
    @Override
    public int deleteVideoDateByXids(Integer[] xids)
    {
        return videoDateMapper.deleteVideoDateByXids(xids);
    }

    /**
     * 删除视频数据信息
     *
     * @param xid 视频数据主键
     * @return 结果
     */
    @Override
    public int deleteVideoDateByXid(Integer xid)
    {
        return videoDateMapper.deleteVideoDateByXid(xid);
    }

    @Override
    public List<VideoDate> selectLongVideoByXid(Integer xid) {
        return videoDateMapper.selectLongVideoByXid(xid);
    }

    @Override
    public List<VideoDate> selectVideoDateByid(Integer id) {
        return videoDateMapper.selectVideoDateByid(id);
    }

    @Override
    public List<VideoDate> selectVideoDateByxid(Integer liveId) {
        return videoDateMapper.selectVideoDateByxid(liveId);
    }
}
